<?if(MEMBER):?>
<li>
    <a class="tab <?=APP=='profile'?' selected':''?>" href="/profile"><?=dgettext('profile','Profile')?></a>
    <ul class="pulldown">
        <li>
            <a class="<?=APP=='profile'&&CMD=='photos'?' selected':''?>" href="/profile/photos"><?=dgettext('profile','Photos')?></a>
        </li>
        <li>
            <a class="<?=APP=='profile'&&CMD=='upload'?' selected':''?>" href="/profile/upload"><?=dgettext('profile','Add photo')?></a>
        </li>
        <li class="last">
            <a class="<?=APP=='profile'&&CMD=='edit'?' selected':''?>" href="/profile/edit"><?=dgettext('profile','Edit')?></a>
        </li>
    </ul>
</li>
<?endif;?>